home *** CD-ROM | disk | FTP | other *** search
/ Practical Web Pages 2004 September / PracticalWebPages-WPG13-09-2004-Coverdisc.iso / pc / Software / Toolkit / Sothink SWF Quicker 1.5 / data1.cab / Public_Files / Classes / LocalConnection.as < prev    next >
Encoding:
Text File  |  2004-06-14  |  1.5 KB  |  14 lines

  1. class LocalConnection
  2. {
  3.  
  4.     function LocalConnection()                                           // It is a constructor. It creates a LocalConnection object.
  5.     function close()                                                     // It disconnects a LocalConnection object. 
  6.     function connect(connectionName)                                     // It prepares the LocalConnection object to receive commands from a LocalConnection.send() command.
  7.     function domain()                                                    // It returns a string representing the domain where the location of the current SWF file is. 
  8.     function send(connectionName, method, p1,í¡pN)                        // It invokes the method named method on a connection.
  9.  
  10.     function allowDomain()                                               // It is Invoked whenever the current (receiving) LocalConnection object receives a request to invoke a method from a sending LocalConnection object.
  11.     function allowInsecureDomain()                                       // It is Invoked whenever the current (receiving) LocalConnection object, which is in a SWF file hosted at a domain using a secure protocol (HTTPS), receives a request to invoke a method from a sending LocalConnection object that is in a SWF file that is hosted at a nonsecure protocol.
  12.     function onStatus()                                                  // It is Invoked after a sending LocalConnection object tries to send a command to a receiving LocalConnection object.
  13. }
  14.